Specify out - of - program components with interfaces 原则6 .用接口说明外部程序组件
Executive program components 管理程序的组成
Marketing program components 营销计划内容
Along the same lines , it is useful to design interfaces to program components in tandem with the tests over them 沿着相同线路,设计和自己的测试代码串联在一起的程序组件接口是有益的。
Using interfaces to specify outside program components allows for easy simulation of these components in the test cases 用接口说明外部程序组件使得我们可以容易地在测试案例中模拟这些组件。